package com.zx.znav.service;

import com.zx.znav.bean.Link;
import com.zx.znav.bean.LinkStar;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author lenovo
* @description 针对表【t_link_star】的数据库操作Service
* @createDate 2023-08-14 10:20:31
*/
public interface LinkStarService extends IService<LinkStar> {
    //收藏链接
    void star(Integer linkId, Integer userId);
    //取消收藏
    void unstar(Integer linkId, Integer userId);
    //判断用户是否收藏链接
    Boolean isStar(Integer linkId, Integer userId);
    //获取用户收藏的链接
    List<Integer> listStarLink(Integer userId);
}
